let baseUrl = import.meta.env.VITE_API_URL;
let absoluteRoot = window.location.protocol + "//" + window.location.host + "/"


const dictItemUrl = baseUrl + "/start/sysDictionaryItem/listByDictionaryCode"
const dictDictUrl = baseUrl + "/start/sysDictionary/listDictCodes";
const securityOssUrl = baseUrl + "/start/oss/resource/getResourceByOssId"
const onlyOfficeServerUrl = window.location.protocol + "//" + window.location.hostname + ":8085"

function getUploadConfig() {
    return {
        action: `${baseUrl}/start/oss/resource/formUpload`,
        propsHttp: {
            name: 'ossName',
            res: 'data',
            url: 'ossUrl',
        }
    }
}


let startFormDefStorageType = import.meta.env.VITE_START_FORM_DEF_DATA_STORAGE_TYPE;
export {

    baseUrl,
    onlyOfficeServerUrl,
    absoluteRoot,
    startFormDefStorageType,
    dictItemUrl,
    dictDictUrl,
    securityOssUrl,
    getUploadConfig,

}